package com.infra.micro.id.domain.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "IdAppPO", description = "id_app表实体对象")
public class IdAppPO implements Serializable {
    /**
     * INTEGER(10) 必填
     * 自增id,此token可访问的业务应用唯一标识ID
     */
    @ApiModelProperty(name = "appId", value = "自增id,此token可访问的业务应用唯一标识ID")
    private Integer appId;

    /**
     * VARCHAR(100) 默认值[] 必填
     * 应用名
     */
    @ApiModelProperty(name = "appName", value = "应用名")
    private String appName;

    /**
     * VARCHAR(127) 默认值[] 必填
     * 密钥
     */
    @ApiModelProperty(name = "secretKey", value = "密钥")
    private String secretKey;

    /**
     * VARCHAR(63) 默认值[] 必填
     * 部门名称
     */
    @ApiModelProperty(name = "deptName", value = "部门名称")
    private String deptName;

    /**
     * VARCHAR(50) 默认值[]
     * 负责人：中文名称
     */
    @ApiModelProperty(name = "ownerName", value = "负责人：中文名称")
    private String ownerName;

    /**
     * VARCHAR(63) 默认值[]
     * 负责人：邮箱前缀
     */
    @ApiModelProperty(name = "ownerEmail", value = "负责人：邮箱前缀")
    private String ownerEmail;

    /**
     * BIT(1) 默认值[b'0'] 必填
     * 1: 禁用, 0: 启用
     */
    @ApiModelProperty(name = "isDisabled", value = "1: 禁用, 0: 启用")
    private Boolean isDisabled;

    /**
     * VARCHAR(255) 默认值[]
     * 备注
     */
    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填
     * 创建时间
     */
    @ApiModelProperty(name = "createTime", value = "创建时间")
    private Date createTime;

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填
     * 更新时间
     */
    @ApiModelProperty(name = "updateTime", value = "更新时间")
    private Date updateTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table id_app
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    /**
     * INTEGER(10) 必填
     * 获得 自增id,此token可访问的业务应用唯一标识ID
     */
    public Integer getAppId() {
        return appId;
    }

    /**
     * INTEGER(10) 必填
     * 设置 自增id,此token可访问的业务应用唯一标识ID
     */
    public void setAppId(Integer appId) {
        this.appId = appId;
    }

    /**
     * VARCHAR(100) 默认值[] 必填
     * 获得 应用名
     */
    public String getAppName() {
        return appName;
    }

    /**
     * VARCHAR(100) 默认值[] 必填
     * 设置 应用名
     */
    public void setAppName(String appName) {
        this.appName = appName == null ? null : appName.trim();
    }

    /**
     * VARCHAR(127) 默认值[] 必填
     * 获得 密钥
     */
    public String getSecretKey() {
        return secretKey;
    }

    /**
     * VARCHAR(127) 默认值[] 必填
     * 设置 密钥
     */
    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey == null ? null : secretKey.trim();
    }

    /**
     * VARCHAR(63) 默认值[] 必填
     * 获得 部门名称
     */
    public String getDeptName() {
        return deptName;
    }

    /**
     * VARCHAR(63) 默认值[] 必填
     * 设置 部门名称
     */
    public void setDeptName(String deptName) {
        this.deptName = deptName == null ? null : deptName.trim();
    }

    /**
     * VARCHAR(50) 默认值[]
     * 获得 负责人：中文名称
     */
    public String getOwnerName() {
        return ownerName;
    }

    /**
     * VARCHAR(50) 默认值[]
     * 设置 负责人：中文名称
     */
    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName == null ? null : ownerName.trim();
    }

    /**
     * VARCHAR(63) 默认值[]
     * 获得 负责人：邮箱前缀
     */
    public String getOwnerEmail() {
        return ownerEmail;
    }

    /**
     * VARCHAR(63) 默认值[]
     * 设置 负责人：邮箱前缀
     */
    public void setOwnerEmail(String ownerEmail) {
        this.ownerEmail = ownerEmail == null ? null : ownerEmail.trim();
    }

    /**
     * BIT(1) 默认值[b'0'] 必填
     * 获得 1: 禁用, 0: 启用
     */
    public Boolean getIsDisabled() {
        return isDisabled;
    }

    /**
     * BIT(1) 默认值[b'0'] 必填
     * 设置 1: 禁用, 0: 启用
     */
    public void setIsDisabled(Boolean isDisabled) {
        this.isDisabled = isDisabled;
    }

    /**
     * VARCHAR(255) 默认值[]
     * 获得 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * VARCHAR(255) 默认值[]
     * 设置 备注
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填
     * 获得 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填
     * 设置 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填
     * 获得 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填
     * 设置 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table id_app
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", appId=").append(appId);
        sb.append(", appName=").append(appName);
        sb.append(", secretKey=").append(secretKey);
        sb.append(", deptName=").append(deptName);
        sb.append(", ownerName=").append(ownerName);
        sb.append(", ownerEmail=").append(ownerEmail);
        sb.append(", isDisabled=").append(isDisabled);
        sb.append(", remark=").append(remark);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table id_app
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        IdAppPO other = (IdAppPO) that;
        return (this.getAppId() == null ? other.getAppId() == null : this.getAppId().equals(other.getAppId()))
            && (this.getAppName() == null ? other.getAppName() == null : this.getAppName().equals(other.getAppName()))
            && (this.getSecretKey() == null ? other.getSecretKey() == null : this.getSecretKey().equals(other.getSecretKey()))
            && (this.getDeptName() == null ? other.getDeptName() == null : this.getDeptName().equals(other.getDeptName()))
            && (this.getOwnerName() == null ? other.getOwnerName() == null : this.getOwnerName().equals(other.getOwnerName()))
            && (this.getOwnerEmail() == null ? other.getOwnerEmail() == null : this.getOwnerEmail().equals(other.getOwnerEmail()))
            && (this.getIsDisabled() == null ? other.getIsDisabled() == null : this.getIsDisabled().equals(other.getIsDisabled()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table id_app
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAppId() == null) ? 0 : getAppId().hashCode());
        result = prime * result + ((getAppName() == null) ? 0 : getAppName().hashCode());
        result = prime * result + ((getSecretKey() == null) ? 0 : getSecretKey().hashCode());
        result = prime * result + ((getDeptName() == null) ? 0 : getDeptName().hashCode());
        result = prime * result + ((getOwnerName() == null) ? 0 : getOwnerName().hashCode());
        result = prime * result + ((getOwnerEmail() == null) ? 0 : getOwnerEmail().hashCode());
        result = prime * result + ((getIsDisabled() == null) ? 0 : getIsDisabled().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}